package com.kjc.demo.basic.designermodel.proxy;

public class BuyHouseProxyFactory implements BuyHouseService{
	
	private BuyHouseService buyHouseService;
	
	public BuyHouseProxyFactory(BuyHouseService buyHouseService) {
		this.buyHouseService = buyHouseService;
	}
	
	@Override
	public void buyHourse() {
		System.out.println("买房前准备");
		buyHouseService.buyHourse();
		System.out.println("买房后准备");
	}

}
